import request from '@/utils/request'

export function listHonor(query) {
  return request({ url: '/cms/honor/list', method: 'get', params: query })
}

export function getHonor(id) {
  return request({ url: `/cms/honor/${id}`, method: 'get' })
}

export function addHonor(data) {
  return request({ url: '/cms/honor', method: 'post', data })
}

export function updateHonor(data) {
  return request({ url: '/cms/honor', method: 'put', data })
}

export function delHonor(ids) {
  return request({ url: `/cms/honor/${ids}`, method: 'delete' })
}


